package com.jd.myaaaccount.entity;

import java.util.Date;
import java.util.List;

public class Settle {
	private Date startDate;
	private Date endDate;
	private Host creator;
	/**
	 * 总消费金额
	 */
	private double money;
	/**
	 * 所属家庭
	 */
	private Host family;
	private List<SettleDetail> settleDetails;
	/**
	 * 结算状态 0未结算 1已经结算 2结算中
	 */
	private int settled;
	

	public Date getStartDate() {
		return startDate;
	}


	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}


	public Date getEndDate() {
		return endDate;
	}


	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}


	public Host getCreator() {
		return creator;
	}


	public void setCreator(Host creator) {
		this.creator = creator;
	}


	public double getMoney() {
		return money;
	}


	public void setMoney(double money) {
		this.money = money;
	}


	public Host getFamily() {
		return family;
	}


	public void setFamily(Host family) {
		this.family = family;
	}


	public List<SettleDetail> getSettleDetails() {
		return settleDetails;
	}


	public void setSettleDetails(List<SettleDetail> settleDetails) {
		this.settleDetails = settleDetails;
	}


	public int getSettled() {
		return settled;
	}


	public void setSettled(int settled) {
		this.settled = settled;
	}


	/**
	 * 结算详情
	 * 
	 * @author JD
	 * 
	 */
	public class SettleDetail {
		private Host user;
		/**
		 * 付款金额
		 */
		private double pay;
		/**
		 * 消费金额
		 */
		private double consume;
		/**
		 * 结算金额 正数表示应收金额 负数表示应付金额
		 */
		private double settle;
		/**
		 * 是否同意 0不同意 1同意 2等待同意
		 */
		private int agree;
		public Host getUser() {
			return user;
		}
		public void setUser(Host user) {
			this.user = user;
		}
		public double getPay() {
			return pay;
		}
		public void setPay(double pay) {
			this.pay = pay;
		}
		public double getConsume() {
			return consume;
		}
		public void setConsume(double consume) {
			this.consume = consume;
		}
		public double getSettle() {
			return settle;
		}
		public void setSettle(double settle) {
			this.settle = settle;
		}
		public int getAgree() {
			return agree;
		}
		public void setAgree(int agree) {
			this.agree = agree;
		} 
		
	}
}
